home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 10 / AACD 10.iso / AACD / Magazine / Morphos / GCC / os-includeppc / inline / gadtools.h < prev    next >
C/C++ Source or Header  |  1997-04-14  |  5KB  |  131 lines

  1. /* Automatically generated header! Do not edit! */
  2.  
  3. #ifndef _INLINE_GADTOOLS_H
  4. #define _INLINE_GADTOOLS_H
  5.  
  6. #ifndef __INLINE_MACROS_H
  7. #include <inline/macros.h>
  8. #endif /* !__INLINE_MACROS_H */
  9.  
  10. #ifndef GADTOOLS_BASE_NAME
  11. #define GADTOOLS_BASE_NAME GadToolsBase
  12. #endif /* !GADTOOLS_BASE_NAME */
  13.  
  14. #define CreateContext(glistptr) \
  15.     LP1(0x72, struct Gadget *, CreateContext, struct Gadget **, glistptr, a0, \
  16.     , GADTOOLS_BASE_NAME)
  17.  
  18. #define CreateGadgetA(kind, gad, ng, taglist) \
  19.     LP4(0x1e, struct Gadget *, CreateGadgetA, unsigned long, kind, d0, struct Gadget *, gad, a0, struct NewGadget *, ng, a1, struct TagItem *, taglist, a2, \
  20.     , GADTOOLS_BASE_NAME)
  21.  
  22. #ifndef NO_INLINE_STDARG
  23. #define CreateGadget(a0, a1, a2, tags...) \
  24.     ({ULONG _tags[] = { tags }; CreateGadgetA((a0), (a1), (a2), (struct TagItem *)_tags);})
  25. #endif /* !NO_INLINE_STDARG */
  26.  
  27. #define CreateMenusA(newmenu, taglist) \
  28.     LP2(0x30, struct Menu *, CreateMenusA, struct NewMenu *, newmenu, a0, struct TagItem *, taglist, a1, \
  29.     , GADTOOLS_BASE_NAME)
  30.  
  31. #ifndef NO_INLINE_STDARG
  32. #define CreateMenus(a0, tags...) \
  33.     ({ULONG _tags[] = { tags }; CreateMenusA((a0), (struct TagItem *)_tags);})
  34. #endif /* !NO_INLINE_STDARG */
  35.  
  36. #define DrawBevelBoxA(rport, left, top, width, height, taglist) \
  37.     LP6NR(0x78, DrawBevelBoxA, struct RastPort *, rport, a0, long, left, d0, long, top, d1, long, width, d2, long, height, d3, struct TagItem *, taglist, a1, \
  38.     , GADTOOLS_BASE_NAME)
  39.  
  40. #ifndef NO_INLINE_STDARG
  41. #define DrawBevelBox(a0, a1, a2, a3, a4, tags...) \
  42.     ({ULONG _tags[] = { tags }; DrawBevelBoxA((a0), (a1), (a2), (a3), (a4), (struct TagItem *)_tags);})
  43. #endif /* !NO_INLINE_STDARG */
  44.  
  45. #define FreeGadgets(gad) \
  46.     LP1NR(0x24, FreeGadgets, struct Gadget *, gad, a0, \
  47.     , GADTOOLS_BASE_NAME)
  48.  
  49. #define FreeMenus(menu) \
  50.     LP1NR(0x36, FreeMenus, struct Menu *, menu, a0, \
  51.     , GADTOOLS_BASE_NAME)
  52.  
  53. #define FreeVisualInfo(vi) \
  54.     LP1NR(0x84, FreeVisualInfo, APTR, vi, a0, \
  55.     , GADTOOLS_BASE_NAME)
  56.  
  57. #define GT_BeginRefresh(win) \
  58.     LP1NR(0x5a, GT_BeginRefresh, struct Window *, win, a0, \
  59.     , GADTOOLS_BASE_NAME)
  60.  
  61. #define GT_EndRefresh(win, complete) \
  62.     LP2NR(0x60, GT_EndRefresh, struct Window *, win, a0, long, complete, d0, \
  63.     , GADTOOLS_BASE_NAME)
  64.  
  65. #define GT_FilterIMsg(imsg) \
  66.     LP1(0x66, struct IntuiMessage *, GT_FilterIMsg, struct IntuiMessage *, imsg, a1, \
  67.     , GADTOOLS_BASE_NAME)
  68.  
  69. #define GT_GetGadgetAttrsA(gad, win, req, taglist) \
  70.     LP4(0xae, LONG, GT_GetGadgetAttrsA, struct Gadget *, gad, a0, struct Window *, win, a1, struct Requester *, req, a2, struct TagItem *, taglist, a3, \
  71.     , GADTOOLS_BASE_NAME)
  72.  
  73. #ifndef NO_INLINE_STDARG
  74. #define GT_GetGadgetAttrs(a0, a1, a2, tags...) \
  75.     ({ULONG _tags[] = { tags }; GT_GetGadgetAttrsA((a0), (a1), (a2), (struct TagItem *)_tags);})
  76. #endif /* !NO_INLINE_STDARG */
  77.  
  78. #define GT_GetIMsg(iport) \
  79.     LP1(0x48, struct IntuiMessage *, GT_GetIMsg, struct MsgPort *, iport, a0, \
  80.     , GADTOOLS_BASE_NAME)
  81.  
  82. #define GT_PostFilterIMsg(imsg) \
  83.     LP1(0x6c, struct IntuiMessage *, GT_PostFilterIMsg, struct IntuiMessage *, imsg, a1, \
  84.     , GADTOOLS_BASE_NAME)
  85.  
  86. #define GT_RefreshWindow(win, req) \
  87.     LP2NR(0x54, GT_RefreshWindow, struct Window *, win, a0, struct Requester *, req, a1, \
  88.     , GADTOOLS_BASE_NAME)
  89.  
  90. #define GT_ReplyIMsg(imsg) \
  91.     LP1NR(0x4e, GT_ReplyIMsg, struct IntuiMessage *, imsg, a1, \
  92.     , GADTOOLS_BASE_NAME)
  93.  
  94. #define GT_SetGadgetAttrsA(gad, win, req, taglist) \
  95.     LP4NR(0x2a, GT_SetGadgetAttrsA, struct Gadget *, gad, a0, struct Window *, win, a1, struct Requester *, req, a2, struct TagItem *, taglist, a3, \
  96.     , GADTOOLS_BASE_NAME)
  97.  
  98. #ifndef NO_INLINE_STDARG
  99. #define GT_SetGadgetAttrs(a0, a1, a2, tags...) \
  100.     ({ULONG _tags[] = { tags }; GT_SetGadgetAttrsA((a0), (a1), (a2), (struct TagItem *)_tags);})
  101. #endif /* !NO_INLINE_STDARG */
  102.  
  103. #define GetVisualInfoA(screen, taglist) \
  104.     LP2(0x7e, APTR, GetVisualInfoA, struct Screen *, screen, a0, struct TagItem *, taglist, a1, \
  105.     , GADTOOLS_BASE_NAME)
  106.  
  107. #ifndef NO_INLINE_STDARG
  108. #define GetVisualInfo(a0, tags...) \
  109.     ({ULONG _tags[] = { tags }; GetVisualInfoA((a0), (struct TagItem *)_tags);})
  110. #endif /* !NO_INLINE_STDARG */
  111.  
  112. #define LayoutMenuItemsA(firstitem, vi, taglist) \
  113.     LP3(0x3c, BOOL, LayoutMenuItemsA, struct MenuItem *, firstitem, a0, APTR, vi, a1, struct TagItem *, taglist, a2, \
  114.     , GADTOOLS_BASE_NAME)
  115.  
  116. #ifndef NO_INLINE_STDARG
  117. #define LayoutMenuItems(a0, a1, tags...) \
  118.     ({ULONG _tags[] = { tags }; LayoutMenuItemsA((a0), (a1), (struct TagItem *)_tags);})
  119. #endif /* !NO_INLINE_STDARG */
  120.  
  121. #define LayoutMenusA(firstmenu, vi, taglist) \
  122.     LP3(0x42, BOOL, LayoutMenusA, struct Menu *, firstmenu, a0, APTR, vi, a1, struct TagItem *, taglist, a2, \
  123.     , GADTOOLS_BASE_NAME)
  124.  
  125. #ifndef NO_INLINE_STDARG
  126. #define LayoutMenus(a0, a1, tags...) \
  127.     ({ULONG _tags[] = { tags }; LayoutMenusA((a0), (a1), (struct TagItem *)_tags);})
  128. #endif /* !NO_INLINE_STDARG */
  129.  
  130. #endif /* !_INLINE_GADTOOLS_H */
  131.